<template>
  <div class="event1">
    <h4>useAttrs通信的使用</h4>
    <el-button :="$attrs">滑入显示title</el-button>
    <h4 v-bind="{ a: 1, b: 1 }">我是h4标签上面有属性</h4>
  </div>
</template>

<script setup lang="ts">
//
import { useAttrs } from "vue";
let $attrs = useAttrs();
// useAttrs和props：谁先拿到就是谁的

// let props = defineProps(["title"]);
</script>

<style scoped lang="scss">
.event1 {
  height: 200px;
  width: 400px;
  background: rgb(47, 195, 228);
}
</style>
